<html>
	<head>
		<title>Kiseki Publisher: <? echo $page["title"]; ?></title>
		<link rel="stylesheet" type="text/css" href="?file=publisher.css" />
	</head>
	<body>
		<div id="canvas-wrapper">
			<div id="canvas">
				<div style="float: right; text-align: center">
					<a href="?action=build">
						<img src="?file=buildicon.png" />
					</a><br />
					<span class="small gray">CLICK TO BUILD</span>
				</div>
				<h1><? echo $page["title"]; ?></h1>
				<span class="gray"><? echo $page["buildinfo"]; ?></span>

				<div id="download-holder">
					<? if (array_key_exists("scormfile", $page)) { ?>
						<div style="float: left">
							<a href="?action=download"><img border="0" src="?file=scormicon.png" /></a>
						</div>
						<div style="float: right">
							<a href="?action=preview" title="Preview" target="<? echo $page["scormfile"]; ?>_preview">
								<img src="?file=previewicon.png" style="margin-right: 5px" alt="Preview"/>
							</a>
							<a href="?action=download" title="Download">
								<img src="?file=downloadicon.png" alt="Download"/>
							</a>
						</div>
						<div style="margin-top: 8px; margin-left: 60px">
							<a href="?action=download"><?php echo $page["scormfile"]; ?></a><br />
							<span class="small gray">SCORM File, <? echo $page["scormsize"]; ?>B</span>
						</div>
					<? } else { ?>
						<div style="width: 100%; margin-top: 17px; text-align: center" class="small gray">No current build.</div>
					<? } ?>
				</div>

				<div id="log-header">Build Log</div>
				<textarea id="log"></textarea>
			</div>
		</div>
	</body>
</html>